package com.qf.j2105.controller;


import com.qf.j2105.po.BygzBy;
import com.qf.j2105.service.FindGzByService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class UpkeepController {
    //注入service
    @Resource
    private FindGzByService findGzByService;

    //获取到所有的保养信息
    @ResponseBody
    @GetMapping("/gzby")
    public List<BygzBy> findbygzby(){
        List<BygzBy> allGzBy = findGzByService.findAllGzBy();
        System.out.println(allGzBy);
        return allGzBy;
    }

    //瓜子养车页面---分类


}
